#!/bin/sh
set -e

if [ "$1" = "configure" ]; then
    if [ -x "`which update-menus 2>/dev/null`" ]; then
	update-menus
    fi
    if [ -x "`which update-mime-database 2>/dev/null`" ]; then
	update-mime-database /usr/share/mime
    fi
    if [ -x "`which update-desktop-database 2>/dev/null`" ]; then
	update-desktop-database -q
    fi
fi

# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
	update-menus
fi
# End automatically added section

